package com.bluesky.drcp.persistence.dao;

import java.util.List;

import com.bluesky.drcp.business.FunctionAuthorization;


public interface FunctionAuthorizationDao {
	
	void save(FunctionAuthorization functionAuthorization);
	boolean isUserAuthorized(String userId,String functionId);	
	boolean isRoleAuthorized(String roleId,String functionId);
	List getAuthorizedFunctions(String roleId);
	void setAuthorizedFunctions(String roleId, List functionIds);
	void deleteByFunctionId(String functionId);
	void deleteByRoleId(String roleId);
	
}
